{extend name="base" /}
{block name="content"}
<style>
    th{
        text-align: center;
    }
</style>
<ol class="breadcrumb" style="background-color: #f9f9f9;padding:8px 0;margin-bottom:10px;">
    <li>
        <a href=""><i class="fa fa-cogs"></i>
            标签管理</a>
    </li>
    <li class="active">
        <a href="{:url('admin/tag/add')}">标签添加</a>
    </li>
    <li class="active">

    </li>
</ol>
<ul class="nav nav-tabs" role="tablist">
    <li class="active"><a href="#tab1">标签管理</a></li>
    <li><a href="{:url('admin/tag/add')}">标签添加</a></li>
</ul>
<form action="" method="post">
    <div class="panel panel-default">
        <div class="panel-body">
            <table class="table table-hover">
                <thead>
                <tr style="text-align: center">
                    <th width="80">编号</th>
                    <th>分类名称</th>
                    <th width="200">操作</th>
                </tr>
                </thead>
                <tbody>
                {foreach name='data' item='v'}
                <tr style="text-align: center">
                    <td>{$v['tid']}</td>
                    <td>{$v['tname']}</td>

                    <td>
                        <div class="btn-group">
                            <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span></button>
                            <ul class="dropdown-menu dropdown-menu-right">
                                <li><a href="{:url('add',['tid'=>$v['tid']])}">编辑</a></li>
                                <li class="divider"></li>
                                <li><a href="">删除</a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
                {/foreach}
                </tbody>
            </table>
        </div>
    </div>
</form>
<div class="pagination pagination-sm pull-right">
    {$data->render()}
</div>
{/block}